﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using DAL.MySQL;
using Models;
using PetaPoco;

namespace Core
{
    public class logCore
    {
        private readonly logDAL dal = new logDAL();

        public Page<logEntity> GetPageList(int page, int pagesize, string where, string order, params object[] args)
        {
            return dal.GetPageList(page, pagesize, where, order, args);
        }
        public logEntity Save(logEntity model)
        {
            return dal.Save(model);
        }

        public bool Del()
        {
            return dal.Del();
        }
    }
}
